<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="fragment/Headfragment::Headfragment">
</head>

<body>

<div class="container-scroller">
    <!-- partial:../../partials/_navbar.html -->
<nav th:replace="fragment/PageHeadfragmeng::PageHeadfragment"></nav>
    <!-- partial -->
    <div class="container-fluid page-body-wrapper">
        <!-- partial:../../partials/_sidebar.html -->
      <nav th:replace="fragment/PageSidebarfragment::PageSidebarfragment"></nav>
        <!-- partial -->
        <div class="main-panel">
            <div class="page-header">
                <h3 class="page-title">
              <span class="page-title-icon bg-gradient-primary text-white mr-2">
                <i class="mdi mdi-home"></i>
              </span>
                    主页
                </h3>
                <nav aria-label="breadcrumb">
                    <ul class="breadcrumb">
                        <li class="breadcrumb-item active" aria-current="page">
                            <span></span>Overview
                            <i class="mdi mdi-alert-circle-outline icon-sm text-primary align-middle"></i>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="col-12 grid-margin stretch-card">
                <div class="card">
                    <div class="card-body">
                        <h4 class="card-title">基本信息</h4>
                        <p class="card-description">
                            客户个人信息
                        </p>
                        <form action="/customerInfo/ciUpdate" method="post" class="forms-sample">
                            <div class="form-group">
                                <label for="exampleInputName1">姓名</label>
                                <input type="text" class="form-control" id="exampleInputName1" placeholder="Name" th:value="${session.ci.getRealname()} " name="realname">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputEmail3">Email address</label>
                                <input type="email" class="form-control" id="exampleInputEmail3" placeholder="Email" th:value="${session.ci.getEmail()}" name="email">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputPassword4">电话号码</label>
                                <input type="text" class="form-control" id="exampleInputPassword4" placeholder="Phone" th:value="${session.ci.getPhone()}" name="phone">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputCompany">公司</label>
                                <input type="text" class="form-control" id="exampleInputCompany" placeholder="Company" th:value="${session.ci.getCompany()}" name="company">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputAddress">地址</label>
                                <input type="text" class="form-control" id="exampleInputAddress" placeholder="Address" th:value="${session.ci.getAddress()}" name="address">
                            </div>
                            <!--                <div class="form-group">-->
                            <!--                  <label for="exampleSelectGender">性别</label>-->
                            <!--                    <select class="form-control" id="exampleSelectGender">-->
                            <!--                      <option>男</option>-->
                            <!--                      <option>女</option>-->
                            <!--                    </select>-->
                            <!--                  </div>-->
                            <div class="form-group">
                                <label for="exampleSelectLevel">等级</label>
                                <select th:class="form-control" id="exampleSelectLevel" name="level" >
                                    <option th:if="${session.ci.getLevel()=='普通客户'}" selected>普通客户</option>
                                    <option th:if="${session.ci.getLevel()!='普通客户'}">普通客户</option>

                                    <option th:if="${session.ci.getLevel()=='潜在客户'}" selected>潜在客户</option>
                                    <option th:if="${session.ci.getLevel()!='潜在客户'}">潜在客户</option>

                                    <option th:if="${session.ci.getLevel()=='VIP客户'}" selected>VIP客户</option>
                                    <option th:if="${session.ci.getLevel()!='VIP客户'}">VIP客户</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="exampleSelectChannel">Channel</label>
                                <select th:class="form-control" id="exampleSelectChannel" name="channel" >
                                    <option th:if="${session.ci.getChannel()=='客服录入'}" selected>客服录入</option>
                                    <option th:if="${session.ci.getChannel()!='客服录入'}">客服录入</option>

                                    <option th:if="${session.ci.getChannel()=='网页介入'}" selected>网页介入</option>
                                    <option th:if="${session.ci.getChannel()!='网页介入'}">网页介入</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="exampleSelectRemark">Remark</label>
                                <select th:class="form-control" id="exampleSelectRemark" name="remark" >
                                    <option th:if="${session.ci.getRemark()=='重要'}" selected>重要</option>
                                    <option th:if="${session.ci.getRemark()!='重要'}">重要</option>

                                    <option th:if="${session.ci.getRemark()=='合作'}" selected>合作</option>
                                    <option th:if="${session.ci.getRemark()!='合作'}">合作</option>

                                    <option th:if="${session.ci.getRemark()=='联系'}" selected>联系</option>
                                    <option th:if="${session.ci.getRemark()!='联系'}">联系</option>

                                    <option th:if="${session.ci.getRemark()=='沟通'}" selected>沟通</option>
                                    <option th:if="${session.ci.getRemark()!='沟通'}">沟通</option>

                                    <option th:if="${session.ci.getRemark()=='谈判'}" selected>谈判</option>
                                    <option th:if="${session.ci.getRemark()!='谈判'}">谈判</option>

                                    <option th:if="${session.ci.getRemark()=='拉拢'}" selected>拉拢</option>
                                    <option th:if="${session.ci.getRemark()!='拉拢'}">拉拢</option>
                                </select>
                            </div>

                            <div class="template-demo" align="center">
                                <button type="submit"  class="btn btn-gradient-danger btn-lg" >确认</button>
                                <a class="btn btn-outline-secondary btn-lg "  th:href="@{customerInfo/Customer(current=1,size=8)}" >返回</a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <!-- partial -->
        </div>
        <!-- main-panel ends -->
    </div>
    <!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->
<!-- plugins:js -->
<script src="vendors/js/vendor.bundle.base.js"></script>
<script src="vendors/js/vendor.bundle.addons.js"></script>
<!-- endinject -->
<!-- Plugin js for this page-->
<!-- End plugin js for this page-->
<!-- inject:js -->
<script src="js/off-canvas.js"></script>
<script src="js/misc.js"></script>
<!-- endinject -->
<!-- Custom js for this page-->
<!-- End custom js for this page-->
</body>

</html>
